package com.yunxi.sto.service;

import java.util.*;
import com.github.pagehelper.PageInfo;
import com.yunxi.core.web.LoginInfo;
import com.yunxi.sto.pojo.PartnerVehicleTradeApproveHisVO;
import com.yunxi.sto.pojo.PartnerVehicleTradeApproveVO;
import com.yunxi.sto.pojo.PartnerVehicleTradeDetailListVO;
import com.yunxi.sto.pojo.PartnerVehicleTradeVO;

/**
 * <p>
 * 渠道商车辆买卖 服务类
 * </p>
 *
 * @author caoYong
 * @since 2019-08-30
 */
public interface PartnerVehicleTradeDubboService {

    PartnerVehicleTradeVO getById(String id) throws Exception;

    void saveOrUpdate(PartnerVehicleTradeVO partnerVehicleTradeVO, LoginInfo loginInfo) throws Exception;

    void removeById(String id);

    PageInfo<PartnerVehicleTradeVO> findPageByVO(PartnerVehicleTradeVO partnerVehicleTradeVO,Integer pageNum, Integer pageSize) throws Exception;

    PageInfo<PartnerVehicleTradeVO> saleFromManager(PartnerVehicleTradeVO partnerVehicleTradeVO,Integer pageNum, Integer pageSize,Integer approveType) throws Exception;

    PageInfo<PartnerVehicleTradeApproveHisVO> approveHis(PartnerVehicleTradeVO partnerVehicleTradeVO, Integer pageNum, Integer pageSize) throws Exception;

    void removeByListVo(List<PartnerVehicleTradeVO> partnerVehicleTradeVOList) throws Exception;

    List listByVo(PartnerVehicleTradeVO partnerVehicleTradeVO);

    List<PartnerVehicleTradeDetailListVO> detailList(String tradeId)throws Exception;

    void approve(PartnerVehicleTradeApproveVO partnerVehicleTradeApproveVO,LoginInfo loginInfo)throws Exception;
}
